import request from '@/utils/request'

//订单
const api_name = '/api/order'

export default {

  //获取总订单数量
  getOrderCount(){
    return request({
      url: `${api_name}/orderInfo/getOrderCount`,
      method: 'get'
    })
  },

  //获取总收益
  getTotalRevenue(){
    return request({
      url: `${api_name}/weixin/getTotalRevenue`,
      method: 'get'
    })
  },

  //获取退款人信息
  getRefundInfo(){
    return request({
      url: `${api_name}/refundInfo/getRefundInfo`,
      method: 'get'
    })
  },

  //查询所有订单
  findAllOrders(){
    return request({
      url: `${api_name}/orderInfo/findAllOrders`,
      method: 'get'
    })
  }
}
